from django.contrib import admin
from django.conf.urls.defaults import *
from PSM.PSMDatabase import views
from django.contrib import admin
import settings
admin.autodiscover()


urlpatterns = patterns('',
    # Set path for image use on web page.
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
    #==================================#
    ('^$', 'PSM.views.main'),
    (r'^admin/', include(admin.site.urls)),
    (r'^upload/$', views.upload),
    (r'^report/$', views.report),
    (r'^upload_complete/$', views.upload_complete),
    (r'^upload_error/$', views.upload_error),
    (r'^teacher_form/$', views.teacher_form),
    (r'^teacher/$', views.teacher),
    (r'^teacher/add_student_form/$', views.addStudent_form),
    (r'^teacher/add_student/$', views.addStudent),
    (r'^teacher/remove_student_form/$', views.removeStudent_form),
    (r'^teacher/remove_student/$', views.removeStudent),
    (r'^teacher/views_student_form/$', views.viewsStudent_form),
    (r'^teacher/viewsStudent/$', views.viewsStudent),
    (r'^teacher/add_lab_form/$', views.addLabScore_form),
    (r'^teacher/addLabScore/$', views.addLabScore),
    (r'^teacher/add_mid_form/$', views.addMidScore_form),
    (r'^teacher/addMidScore/$', views.addMidScore),
    (r'^teacher/add_final_form/$', views.addFinalScore_form),
    (r'^teacher/addFinalScore/$', views.addFinalScore),
    (r'^teacher/calculate_grade/$', views.calculateGrade),
    (r'^teacher/show_grade/$', views.showGrade),
    (r'^teacher/show_grade_student/$', views.showGradeStudent),
    (r'^teacher/upload_file/$', views.uploadFile),
    (r'^teacher/send_grade/$', views.sendGrade),
    (r'^teacher/logout/$', views.logout_view),
    (r'^teacher/show_grade_grapht/$', views.show_grade_graph),
    (r'^make_graph/$', views.make_graph),
    (r'^show_graph/$', views.show_graph),
    (r'^svg/$', views.svg),
    (r'^student_form/$', views.student_form),
    (r'^student_show_grade_form/$', views.student_show_grade_form),
 )
